﻿

namespace Huirui.Cavan.Presentation.Seedwork
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    [AttributeUsage(AttributeTargets.Method)]
    public class ActionPermissionAttribute : Attribute
    {
        private bool _isUsedDenied;
        private string _name;

        public bool IsUsedDenied 
        {
            get 
            { 
                return _isUsedDenied; 
            }
            set
            {
                _isUsedDenied = value;
            }
        }

        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        public ActionPermissionAttribute()
        {
            this._isUsedDenied = true;
        }

        public ActionPermissionAttribute(bool isUsedDenied)
        {
            this._isUsedDenied = isUsedDenied;
        }
    }
}
